package com.ssy.lingxi.member.merchant.model.vo.basic.response;

import java.io.Serializable;
import java.util.Objects;

/**
 * 会员类型查询返回VO
 * @author 万宁
 * @version 2.0.0
 * @date 2020-08-27
 */
public class MemberTypeIdAndNameVO implements Serializable {
    private static final long serialVersionUID = -5641782445587440209L;

    public MemberTypeIdAndNameVO() {
    }

    public MemberTypeIdAndNameVO(Long memberTypeId, String memberTypeName) {
        this.memberTypeId = memberTypeId;
        this.memberTypeName = memberTypeName;
    }

    /**
     * 会员类型Id
     */
    private Long memberTypeId;

    /**
     * 会员类型名称
     */
    private String memberTypeName;

    public Long getMemberTypeId() {
        return memberTypeId;
    }

    public void setMemberTypeId(Long memberTypeId) {
        this.memberTypeId = memberTypeId;
    }

    public String getMemberTypeName() {
        return memberTypeName;
    }

    public void setMemberTypeName(String memberTypeName) {
        this.memberTypeName = memberTypeName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        MemberTypeIdAndNameVO that = (MemberTypeIdAndNameVO) o;
        return Objects.equals(memberTypeId, that.memberTypeId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(memberTypeId);
    }
}
